package com.ddx.dao;

import com.ddx.pojo.ShoppingOrderDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingOrderDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingOrderDetail record);

    int insertSelective(ShoppingOrderDetail record);

    ShoppingOrderDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingOrderDetail record);

    int updateByPrimaryKey(ShoppingOrderDetail record);
    //@LZ_TAG_ID: METHOD BEGIN 自定义方法
    /**
     * 根据userId查询订单信息
     * @param orderId
     * @return
     */
    List<ShoppingOrderDetail> selectOrderDetailByOrderId(String orderId);
    //@LZ_TAG_ID: METHOD END
}